#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "Person.h"
#include "Student.h"
#include "Teacher.h"

using namespace std;

TEST(Student, introduce_as_a_leader)
{
    Klass klass(2);
    Student jerry("1", "Jerry", 18, klass);
    klass.AppendMember(jerry);
    klass.AssignLeader(jerry);
    string actual = jerry.Introduce();

    EXPECT_THAT(actual, ::testing::Eq("My name is Jerry. I am 18 years old. I am a Student. I am a Leader of Class 2."));
}
